﻿using SD.Infrastructure.DTOBase;
using SlamDunk.MES.IAppService.DTOs.Outputs.FoundationContext;
using SlamDunk.MES.IAppService.DTOs.Outputs.ResourceContext;
using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Outputs.ExecutionContext
{
    /// <summary>
    /// 工单人员要求数据传输对象
    /// </summary>
    [DataContract]
    public class WorkOrderPersonAskInfo : BaseDTO
    {
        #region 人员类Id —— Guid? PersonClassId
        /// <summary>
        /// 人员类Id
        /// </summary>
        [DataMember]
        public Guid? PersonClassId { get; set; }
        #endregion

        #region 人员Id —— Guid? PersonId
        /// <summary>
        /// 人员Id
        /// </summary>
        [DataMember]
        public Guid? PersonId { get; set; }
        #endregion

        #region 人员用途 —— string PersonUse
        /// <summary>
        /// 人员用途
        /// </summary>
        [DataMember]
        public string PersonUse { get; set; }
        #endregion

        #region 数量 —— decimal? Quantity
        /// <summary>
        /// 数量
        /// </summary>
        [DataMember]
        public decimal? Quantity { get; set; }
        #endregion

        #region 工厂模型Id —— Guid? FacilityId 
        /// <summary>
        /// 工厂模型Id
        /// </summary>
        [DataMember]
        public Guid? FacilityId { get; set; }
        #endregion

        #region 排序 —— int Sort
        /// <summary>
        /// 排序
        /// </summary>
        [DataMember]
        public int Sort { get; set; }
        #endregion

        #region 描述 —— string Description
        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        #endregion


        //导航属性

        #region 导航属性 - 人员类 —— PersonClassInfo PersonClassInfo
        /// <summary>
        /// 导航属性 - 人员类
        /// </summary>
        [DataMember]
        public PersonClassInfo PersonClassInfo { get; set; }
        #endregion

        #region 导航属性 - 人员 —— PersonInfo PersonInfo
        /// <summary>
        /// 导航属性 - 人员
        /// </summary>
        [DataMember]
        public PersonInfo PersonInfo { get; set; }
        #endregion

        #region 导航属性 - 工厂模型 —— FacilityInfo FacilityInfo
        /// <summary>
        /// 导航属性 - 工厂模型
        /// </summary>
        [DataMember]
        public FacilityInfo FacilityInfo { get; set; }
        #endregion
    }
}
